class ICBC:
    total_money = 1000000

    def __init__(self, money=None, name=None):
        self.name = name
        self.money = money
        ICBC.total_money -= self.money

    @classmethod
    def print_total_money(cls):
        print("总行的钱"+str(cls.total_money))

bank1 = ICBC(100000, "支行1")
ICBC.print_total_money()
bank2 = ICBC(200000, "支行2")
ICBC.print_total_money()
